import http from "@/utils/http";

export interface UsersubjectGtsubjectItem {
  name: string;
  details: string;
  home: string;
  workimg: string;
  code: string;
  ustate: 1 | 2;
}
export function UsersubjectGtsubject(params: {
  item?: number;
  appname?: string;
  page: number;
  limit: number;
}) {
  return http.post(`/work/usersubject/getsubject`, params).then<{
    total: number;
    data: UsersubjectGtsubjectItem[];
  }>();
}

export function BusinessCategoryDetailinfo() {
  return http.post(`/work/businesscategory/detailinfo`).then<
    {
      bcid: number;
      bcname: string;
      bcstate: number;
    }[]
  >((res) => res?.data);
}
